package com.Moch.Abstract;

public class Triangle extends Shape{
    private double a;
    private double b;
    private double c;

    public Triangle(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }

    public void draw() {
        System.out.println("三角形: a = " + a + "b = " + b + "c = " + c);
    }

    public void calcArea(){
        area = a * b * c;
    }

    public void Ttt() {
        System.out.println("三角形");
    }


}
